import { axios } from '@/utils/request'

/**
 * 查询盘库
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryPage (parameter) {
  return axios({
    url: '/inventory/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 盘库列表
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryList (parameter) {
  return axios({
    url: '/inventory/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加盘库
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryAdd (parameter) {
  return axios({
    url: '/inventory/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑盘库
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryEdit (parameter) {
  return axios({
    url: '/inventory/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除盘库
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryDelete (parameter) {
  return axios({
    url: '/inventory/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 确认
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryConfirm (parameter) {
  return axios({
    url: '/inventory/confirm',
    method: 'post',
    data: parameter
  })
}

/**
 * 复盘
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryRepeat (parameter) {
  return axios({
    url: '/inventory/repeat',
    method: 'post',
    data: parameter
  })
}

/**
 * 完成
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryFinished (parameter) {
  return axios({
    url: '/inventory/finished',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询差异
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryDiff (code) {
  return axios({
    url: '/inventory/diff',
    method: 'get',
    params: { code: code }
  })
}

/**
 * 合并差异
 *
 * @author Eric
 * @date 2021-05-07 08:46:35
 */
export function inventoryMerger (parameter) {
  return axios({
    url: '/inventory/merger',
    method: 'post',
    data: parameter
  })
}

/**
 * 查询详情
 *
 * @author Eric
 * @date 2021-04-04 08:55:37
 */
 export function inventoryDetail (code) {
  return axios({
    url: '/inventory/detail',
    method: 'get',
    params: { code: code }
  })
}
